package com.situ.day5.cal;

//抽象类是不能new对象，抽象类一般是让子类去继承
public abstract class Cal {
    protected int num1;
    protected int num2;

    public Cal() {
    }

    public Cal(int num1, int num2) {
        this.num1 = num1;
        this.num2 = num2;
    }

    //Missing method body, or declare abstract
    //父类里面抽象方法定义标准，自己不实现，让子类去实现
    public abstract int getResult();

    //标准
    /*public int getResult() {
        return 0;
    }*/
}
